package com.pactera.integral;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.data.jpa.JpaRepositoriesAutoConfiguration;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
import org.springframework.boot.autoconfigure.orm.jpa.HibernateJpaAutoConfiguration;
import org.springframework.data.jpa.repository.config.EnableJpaRepositories;

import com.pactera.integral.common.repository.PACTJpaRepositoryFactoryBean;

import springfox.documentation.swagger2.annotations.EnableSwagger2;

@SpringBootApplication(exclude={DataSourceAutoConfiguration.class,HibernateJpaAutoConfiguration.class})
@EnableSwagger2
@EnableAutoConfiguration(exclude={  
	      JpaRepositoriesAutoConfiguration.class//禁止springboot自动加载持久化bean
	        })
@EnableJpaRepositories(basePackages = "com.pactera.integral.dao", repositoryFactoryBeanClass = PACTJpaRepositoryFactoryBean.class)
public class IntegralAdminApp {

	public static void main(String[] args) {
		SpringApplication.run(IntegralAdminApp.class, args);
	}

}
